package com.gxa.employment.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 管理员
 * </p>
 *
 * @author author
 * @since 2025-03-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_manager")
public class Manager implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 管理员编号
     */
    @TableId(value = "manager_id", type = IdType.AUTO)
    private Integer managerId;

    /**
     * 管理员姓名
     */
    @TableField("manager_name")
    private String managerName;

    /**
     * 手机号
     */
    @TableField("manager_phone")
    private String managerPhone;

    /**
     * 密码
     */
    @TableField("manager_pwd")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String managerPwd;

    /**
     * 头像
     */
    @TableField("manager_img")
    private String managerImg;

    /**
     * 是否能使用
     */
    @TableField("inUse")
    private Boolean inUse;

    /**
     * 逻辑删除的判断
     */
    @TableField("deleted")
    private Boolean deleted;

    /**
     * 创建时间
     */
    @TableField("created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime created;

    /**
     * 更新时间
     */
    @TableField("updated")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updated;
}
